Optimal. Leaf size=168 \[ -\frac{A b e-3 A c d+b B d}{b^4 x}-\frac{(b B-A c) (c d-b e)}{2 b^3 (b+c x)^2}-\frac{A d}{2 b^3 x^2}+\frac{\log (x) \left (-3 b c (A e+B d)+6 A c^2 d+b^2 B e\right )}{b^5}-\frac{\log (b+c x) \left (-3 b c (A e+B d)+6 A c^2 d+b^2 B e\right )}{b^5}+\frac{-2 b c (A e+B d)+3 A c^2 d+b^2 B e}{b^4 (b+c x)} \]
[Out]
_______________________________________________________________________________________
Rubi [A] time = 0.449791, antiderivative size = 168, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 2, integrand size = 22, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.091 \[ -\frac{A b e-3 A c d+b B d}{b^4 x}-\frac{(b B-A c) (c d-b e)}{2 b^3 (b+c x)^2}-\frac{A d}{2 b^3 x^2}+\frac{\log (x) \left (-3 b c (A e+B d)+6 A c^2 d+b^2 B e\right )}{b^5}-\frac{\log (b+c x) \left (-3 b c (A e+B d)+6 A c^2 d+b^2 B e\right )}{b^5}+\frac{-2 b c (A e+B d)+3 A c^2 d+b^2 B e}{b^4 (b+c x)} \]
Antiderivative was successfully verified.
[In] Int[((A + B*x)*(d + e*x))/(b*x + c*x^2)^3,x]
[Out]
_______________________________________________________________________________________
Rubi in Sympy [A] time = 57.3765, size = 180, normalized size = 1.07 \[ - \frac{A d}{2 b^{3} x^{2}} - \frac{\left (A c - B b\right ) \left (b e - c d\right )}{2 b^{3} \left (b + c x\right )^{2}} + \frac{- 2 A b c e + 3 A c^{2} d + B b^{2} e - 2 B b c d}{b^{4} \left (b + c x\right )} - \frac{A b e - 3 A c d + B b d}{b^{4} x} + \frac{\left (- 3 A b c e + 6 A c^{2} d + B b^{2} e - 3 B b c d\right ) \log{\left (x \right )}}{b^{5}} - \frac{\left (- 3 A b c e + 6 A c^{2} d + B b^{2} e - 3 B b c d\right ) \log{\left (b + c x \right )}}{b^{5}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] rubi_integrate((B*x+A)*(e*x+d)/(c*x**2+b*x)**3,x)
[Out]
_______________________________________________________________________________________
Mathematica [A] time = 0.266984, size = 162, normalized size = 0.96 \[ \frac{\frac{2 b \left (-2 b c (A e+B d)+3 A c^2 d+b^2 B e\right )}{b+c x}+2 \log (x) \left (-3 b c (A e+B d)+6 A c^2 d+b^2 B e\right )-2 \log (b+c x) \left (-3 b c (A e+B d)+6 A c^2 d+b^2 B e\right )+\frac{b^2 (b B-A c) (b e-c d)}{(b+c x)^2}-\frac{A b^2 d}{x^2}-\frac{2 b (A b e-3 A c d+b B d)}{x}}{2 b^5} \]
Antiderivative was successfully verified.
[In] Integrate[((A + B*x)*(d + e*x))/(b*x + c*x^2)^3,x]
[Out]
_______________________________________________________________________________________
Maple [A] time = 0.018, size = 261, normalized size = 1.6 \[ -{\frac{Ae}{{b}^{3}x}}+3\,{\frac{Acd}{{b}^{4}x}}-{\frac{Bd}{{b}^{3}x}}-3\,{\frac{\ln \left ( x \right ) Aec}{{b}^{4}}}+6\,{\frac{A\ln \left ( x \right ){c}^{2}d}{{b}^{5}}}+{\frac{\ln \left ( x \right ) Be}{{b}^{3}}}-3\,{\frac{\ln \left ( x \right ) Bdc}{{b}^{4}}}-{\frac{Ad}{2\,{b}^{3}{x}^{2}}}-2\,{\frac{Ace}{{b}^{3} \left ( cx+b \right ) }}+3\,{\frac{A{c}^{2}d}{{b}^{4} \left ( cx+b \right ) }}+{\frac{Be}{{b}^{2} \left ( cx+b \right ) }}-2\,{\frac{Bdc}{{b}^{3} \left ( cx+b \right ) }}+3\,{\frac{\ln \left ( cx+b \right ) Aec}{{b}^{4}}}-6\,{\frac{\ln \left ( cx+b \right ) A{c}^{2}d}{{b}^{5}}}-{\frac{\ln \left ( cx+b \right ) Be}{{b}^{3}}}+3\,{\frac{\ln \left ( cx+b \right ) Bdc}{{b}^{4}}}-{\frac{Ace}{2\,{b}^{2} \left ( cx+b \right ) ^{2}}}+{\frac{A{c}^{2}d}{2\,{b}^{3} \left ( cx+b \right ) ^{2}}}+{\frac{Be}{2\,b \left ( cx+b \right ) ^{2}}}-{\frac{Bdc}{2\,{b}^{2} \left ( cx+b \right ) ^{2}}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] int((B*x+A)*(e*x+d)/(c*x^2+b*x)^3,x)
[Out]
_______________________________________________________________________________________
Maxima [A] time = 0.701745, size = 293, normalized size = 1.74 \[ -\frac{A b^{3} d + 2 \,{\left (3 \,{\left (B b c^{2} - 2 \, A c^{3}\right )} d -{\left (B b^{2} c - 3 \, A b c^{2}\right )} e\right )} x^{3} + 3 \,{\left (3 \,{\left (B b^{2} c - 2 \, A b c^{2}\right )} d -{\left (B b^{3} - 3 \, A b^{2} c\right )} e\right )} x^{2} + 2 \,{\left (A b^{3} e +{\left (B b^{3} - 2 \, A b^{2} c\right )} d\right )} x}{2 \,{\left (b^{4} c^{2} x^{4} + 2 \, b^{5} c x^{3} + b^{6} x^{2}\right )}} + \frac{{\left (3 \,{\left (B b c - 2 \, A c^{2}\right )} d -{\left (B b^{2} - 3 \, A b c\right )} e\right )} \log \left (c x + b\right )}{b^{5}} - \frac{{\left (3 \,{\left (B b c - 2 \, A c^{2}\right )} d -{\left (B b^{2} - 3 \, A b c\right )} e\right )} \log \left (x\right )}{b^{5}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((B*x + A)*(e*x + d)/(c*x^2 + b*x)^3,x, algorithm="maxima")
[Out]
_______________________________________________________________________________________
Fricas [A] time = 0.306609, size = 554, normalized size = 3.3 \[ -\frac{A b^{4} d + 2 \,{\left (3 \,{\left (B b^{2} c^{2} - 2 \, A b c^{3}\right )} d -{\left (B b^{3} c - 3 \, A b^{2} c^{2}\right )} e\right )} x^{3} + 3 \,{\left (3 \,{\left (B b^{3} c - 2 \, A b^{2} c^{2}\right )} d -{\left (B b^{4} - 3 \, A b^{3} c\right )} e\right )} x^{2} + 2 \,{\left (A b^{4} e +{\left (B b^{4} - 2 \, A b^{3} c\right )} d\right )} x - 2 \,{\left ({\left (3 \,{\left (B b c^{3} - 2 \, A c^{4}\right )} d -{\left (B b^{2} c^{2} - 3 \, A b c^{3}\right )} e\right )} x^{4} + 2 \,{\left (3 \,{\left (B b^{2} c^{2} - 2 \, A b c^{3}\right )} d -{\left (B b^{3} c - 3 \, A b^{2} c^{2}\right )} e\right )} x^{3} +{\left (3 \,{\left (B b^{3} c - 2 \, A b^{2} c^{2}\right )} d -{\left (B b^{4} - 3 \, A b^{3} c\right )} e\right )} x^{2}\right )} \log \left (c x + b\right ) + 2 \,{\left ({\left (3 \,{\left (B b c^{3} - 2 \, A c^{4}\right )} d -{\left (B b^{2} c^{2} - 3 \, A b c^{3}\right )} e\right )} x^{4} + 2 \,{\left (3 \,{\left (B b^{2} c^{2} - 2 \, A b c^{3}\right )} d -{\left (B b^{3} c - 3 \, A b^{2} c^{2}\right )} e\right )} x^{3} +{\left (3 \,{\left (B b^{3} c - 2 \, A b^{2} c^{2}\right )} d -{\left (B b^{4} - 3 \, A b^{3} c\right )} e\right )} x^{2}\right )} \log \left (x\right )}{2 \,{\left (b^{5} c^{2} x^{4} + 2 \, b^{6} c x^{3} + b^{7} x^{2}\right )}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((B*x + A)*(e*x + d)/(c*x^2 + b*x)^3,x, algorithm="fricas")
[Out]
_______________________________________________________________________________________
Sympy [A] time = 12.3819, size = 449, normalized size = 2.67 \[ \frac{- A b^{3} d + x^{3} \left (- 6 A b c^{2} e + 12 A c^{3} d + 2 B b^{2} c e - 6 B b c^{2} d\right ) + x^{2} \left (- 9 A b^{2} c e + 18 A b c^{2} d + 3 B b^{3} e - 9 B b^{2} c d\right ) + x \left (- 2 A b^{3} e + 4 A b^{2} c d - 2 B b^{3} d\right )}{2 b^{6} x^{2} + 4 b^{5} c x^{3} + 2 b^{4} c^{2} x^{4}} + \frac{\left (- 3 A b c e + 6 A c^{2} d + B b^{2} e - 3 B b c d\right ) \log{\left (x + \frac{- 3 A b^{2} c e + 6 A b c^{2} d + B b^{3} e - 3 B b^{2} c d - b \left (- 3 A b c e + 6 A c^{2} d + B b^{2} e - 3 B b c d\right )}{- 6 A b c^{2} e + 12 A c^{3} d + 2 B b^{2} c e - 6 B b c^{2} d} \right )}}{b^{5}} - \frac{\left (- 3 A b c e + 6 A c^{2} d + B b^{2} e - 3 B b c d\right ) \log{\left (x + \frac{- 3 A b^{2} c e + 6 A b c^{2} d + B b^{3} e - 3 B b^{2} c d + b \left (- 3 A b c e + 6 A c^{2} d + B b^{2} e - 3 B b c d\right )}{- 6 A b c^{2} e + 12 A c^{3} d + 2 B b^{2} c e - 6 B b c^{2} d} \right )}}{b^{5}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((B*x+A)*(e*x+d)/(c*x**2+b*x)**3,x)
[Out]
_______________________________________________________________________________________
GIAC/XCAS [A] time = 0.281488, size = 304, normalized size = 1.81 \[ -\frac{{\left (3 \, B b c d - 6 \, A c^{2} d - B b^{2} e + 3 \, A b c e\right )}{\rm ln}\left ({\left | x \right |}\right )}{b^{5}} + \frac{{\left (3 \, B b c^{2} d - 6 \, A c^{3} d - B b^{2} c e + 3 \, A b c^{2} e\right )}{\rm ln}\left ({\left | c x + b \right |}\right )}{b^{5} c} - \frac{6 \, B b c^{2} d x^{3} - 12 \, A c^{3} d x^{3} - 2 \, B b^{2} c x^{3} e + 6 \, A b c^{2} x^{3} e + 9 \, B b^{2} c d x^{2} - 18 \, A b c^{2} d x^{2} - 3 \, B b^{3} x^{2} e + 9 \, A b^{2} c x^{2} e + 2 \, B b^{3} d x - 4 \, A b^{2} c d x + 2 \, A b^{3} x e + A b^{3} d}{2 \,{\left (c x^{2} + b x\right )}^{2} b^{4}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((B*x + A)*(e*x + d)/(c*x^2 + b*x)^3,x, algorithm="giac")
[Out]